Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert DROP TABLE SQL to pgroll operation #529

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

ryanslade
Copy link
Collaborator

@ryanslade ryanslade commented Dec 12, 2024

Converts DROP TABLE statements in these forms:

DROP TABLE foo
DROP TABLE foo RESTRICT
DROP TABLE foo.bar
DROP TABLE IF EXISTS foo

These forms fall back to raw SQL:

DROP TABLE foo CASCADE

Part of #504

@ryanslade ryanslade changed the title Convert DROP INDEX SQL to pgroll operation Convert DROP TABLE SQL to pgroll operation Dec 12, 2024
@ryanslade ryanslade merged commit 51b2641 into main Dec 12, 2024
28 checks passed
@ryanslade ryanslade deleted the rs/sql2pgroll-drop-table branch December 12, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants